An apparatus and a method for generating data representing a pixel beam

ABSTRACT

There are several types of plenoptic devices and camera arrays available on the market, and all these light field acquisition devices have their proprietary file format. However, there is no standard supporting the acquisition and transmission of multi-dimensional information. It is interesting to obtain information related to a correspondence between pixels of a sensor of said optical acquisition system and an object space of said 10 optical acquisition system. Indeed, knowing which portion of the object space of an optical acquisition system a pixel belonging to the sensor of said optical acquisition system is sensing enables the improvement of signal processing operations. The notion of pixel beam, which represents a volume occupied by a set of rays of light in an object space of an optical system of a camera along with a compact format for storing such information is thus introduce.

TECHNICAL FIELD

The present invention relates to generation of data representing a lightfield.

BACKGROUND

The acquisition of four-dimensional or 4D light-field data, which can beviewed as a sampling of a 4D light field, i.e. the recording of lightrays, is explained in the article “Understanding camera trade-offsthrough a Bayesian analysis of light field projections” by Anat Levinand al., published in the conference proceedings of ECCV 2008 is anhectic research subject.

Compared to classical two-dimensional or 2D images obtained from acamera, 4D light-field data enable a user to have access to morepost-processing features that enhance the rendering of images and theinteractivity with the user. For example, with 4D light-field data, itis possible to perform refocusing of images with freely selecteddistances of focalization meaning that the position of a focal plane canbe specified/selected a posteriori, as well as changing slightly thepoint of view in the scene of an image. In order to acquire 4Dlight-field data, several techniques can be used. For example, aplenoptic camera is able to acquire 4D light-field data. Details of thearchitecture of a plenoptic camera are provided in FIG. 1A. FIG. 1A is adiagram schematically representing a plenoptic camera 100. The plenopticcamera 100 comprises a main lens 101, a microlens array 102 comprising aplurality of micro-lenses 103 arranged in a two-dimensional array and animage sensor 104.

Another way to acquire 4D light-field data is to use a camera array asdepicted in FIG. 1B. FIG. 1B represents a multi-array camera 110. Themulti-array camera 110 comprises a lens array 112 and an image sensor114.

In the example of the plenoptic camera 100 as shown in FIG. 1A, the mainlens 101 receives light from an object (not shown on the figure) in anobject field of the main lens 101 and passes the light through an imagefield of the main lens 101.

At last, another way of acquiring a 4D light field is to use aconventional camera that is configured to capture a sequence of 2Dimages of a same scene at different focal planes. For example, thetechnique described in the document “Light ray field capture using focalplane sweeping and its optical reconstruction using 3D displays” byJ.-H. Park et al., published in OPTICS EXPRESS, Vol. 22, No. 21, inOctober 2014, may be used to achieve the acquisition of 4D light fielddata by means of a conventional camera.

There are several ways to represent 4D light-field data. Indeed, in theChapter 3.3 of the Ph.D dissertation thesis entitled “Digital LightField Photography” by Ren Ng, published in July 2006, three differentways to represent 4D light-field data are described. Firstly, 4Dlight-field data can be represented, when recorded by a plenoptic cameraby a collection of micro-lens images. 4D light-field data in thisrepresentation are named raw images or raw 4D light-field data.Secondly, 4D light-field data can be represented, either when recordedby a plenoptic camera or by a camera array, by a set of sub-apertureimages. A sub-aperture image corresponds to a captured image of a scenefrom a point of view, the point of view being slightly different betweentwo sub-aperture images. These sub-aperture images give informationabout the parallax and depth of the imaged scene. Thirdly, 4Dlight-field data can be represented by a set of epipolar images see forexample the article entitled: “Generating EPI Representation of a 4DLight Fields with a Single Lens Focused Plenoptic Camera”, by S. Wannerand al., published in the conference proceedings of ISVC 2011.

Light-field data can take up large amounts of storage space which canmake storage cumbersome and processing less efficient. In additionlight-field acquisition devices are extremely heterogeneous. Light-fieldcameras are of different types for example plenoptic or camera arrays.Within each type there are many differences such as different opticalarrangements, or micro-lenses of different focal lengths. Each camerahas its own proprietary file format. At present here is no standardsupporting the acquisition and transmission of multi-dimensionalinformation for an exhaustive over-view of the different parameters uponwhich a light-field depends. As such acquired light-field data fordifferent cameras have a diversity of formats. The present invention hasbeen devised with the foregoing in mind.

SUMMARY OF INVENTION

According to a first aspect of the invention there is provided acomputer implemented method for generating data representative of avolume, in an object space of an optical acquisition system, occupied bya set of rays of light passing through a pupil of said opticalacquisition system and a conjugate of at least one pixel of a sensor ofsaid optical acquisition system said volume occupied by said set of raysof light being called a pixel beam, the method comprising:

-   -   acquiring a collection of rays of light, each rays of light of        said collection being representative of a pixel beam, and at        least a first parameter defining the conjugate of the pixel;    -   obtaining intersection data defining intersections of a ray        representative of the pixel beam with a plurality of given        reference planes, said reference planes being parallel to one        another and corresponding to different depths in the object        space;    -   obtaining ray diagram parameters defining the graphical        representation of the intersection data in a 2D ray diagram, and    -   associating said ray diagram parameters with the at least first        parameter defining the conjugate of the pixel to provide data        representative of said pixel beam.

According to an embodiment of the invention, the method furthercomprises:

-   -   encoding a difference between a first value and a second value        of the first parameter defining the conjugate of the pixel, said        difference being associated with said ray diagram parameters to        provide data representative of said pixel beam.

According to an embodiment of the invention, the interception datacorresponding to the ray representative of the pixel beam is graphicallyrepresented in the ray diagram as datalines and the ray diagramparameters include data representative of at least one of:

-   -   the slope of a dataline; and    -   an interception of a dataline with an axis of the ray diagram.

According to an embodiment of the invention, the datalines are detectedin the 2D ray diagram by applying a Radon transform.

According to an embodiment of the invention, the graphicalrepresentation is provided as an matrix of cells to provide a digitaldataline, each digital dataline format being defined by a plurality ofcells, at least one first cell representative of the interception of theline with an axis and at least one second cell from which the slope ofthe line may be determined.

According to an embodiment of the invention, each digital dataline isgenerated by application of Bresenham's algorithm.

According to an embodiment of the invention, the data representative ofthe pixel beam further comprises colour data representing the colour ofthe corresponding ray representative of the pixel beam.

According to an embodiment of the invention, the data representative ofthe pixel beam is provided as meta data, the header of meta datacomprising the ray diagram parameters defining the graphicalrepresentation of the intersection data in a 2D ray diagram and the bodyof the metadata comprising data representative of colour of the ray andthe parameters defining a position and a size of the conjugate of thepixel in the object space.

Another object of the invention concerns a device for generating datarepresentative of a volume, in an object space of an optical acquisitionsystem, occupied by a set of rays of light passing through a pupil ofsaid optical acquisition system and a conjugate of at least one pixel ofa sensor of said optical acquisition system said volume occupied by saidset of rays of light being called a pixel beam, the device comprising aprocessor configured to:

-   -   acquire a collection of rays of light, each rays of light of        said collection being representative of a pixel beam, and at        least a first parameter defining the conjugate of the pixel;    -   obtain intersection data defining intersections of a ray        representative of the pixel beam with a plurality of given        reference planes, said reference planes being parallel to one        another and corresponding to different depths in the object        space;    -   obtain ray diagram parameters defining the graphical        representation of the intersection data in a 2D ray diagram, and    -   associate said ray diagram parameters with the at least first        parameter defining the conjugate of the pixel to provide data        representative of said pixel beam.

According to an embodiment of the invention, the processor of the deviceis further configured to:

-   -   encode a difference between a first value and a second value of        the first parameter defining the conjugate of the pixel, said        difference being associated with said ray diagram parameters to        provide data representative of said pixel beam.11. A light field        imaging device comprising:        -   an array of micro lenses arranged in a regular lattice            structure;        -   a photosensor configured to capture light projected on the            photosensor from the array of micro lenses, the photosensor            comprising sets of pixels, each set of pixels being            optically associated with a respective micro lens of the            array of micro lenses; and        -   a device for providing metadata in accordance with claim 11.

Another object of the invention concerns a digital file comprising datarepresentative of a volume, in an object space of an optical acquisitionsystem, occupied by a set of rays of light passing through a pupil ofsaid optical acquisition system and a conjugate of at least one pixel ofa sensor of said optical acquisition system said volume occupied by saidset of rays of light being called a pixel beam, said data comprising:

-   -   a ray diagram parameters defining the graphical representation        in a 2D ray diagram of intersection data of the ray        representative of the pixel beam, the intersection data defining        intersections of the light field ray representative of the pixel        beam with a plurality of given reference planes, said reference        planes being parallel to one another and corresponding to        different depths in the object space;    -   color data defining colors of the light field ray representative        of the pixel beam, and    -   parameters defining a position and a size of a conjugate of the        pixel in the object space of the optical acquisition system.        Some processes implemented by elements of the invention may be        computer implemented. Accordingly, such elements may take the        form of an entirely hardware embodiment, an entirely software        embodiment (including firmware, resident software, micro-code,        etc.) or an embodiment combining software and hardware aspects        that may all generally be referred to herein as a “circuit”,        “module” or “system”. Furthermore, such elements may take the        form of a computer program product embodied in any tangible        medium of expression having computer usable program code        embodied in the medium.

Since elements of the present invention can be implemented in software,the present invention can be embodied as computer readable code forprovision to a programmable apparatus on any suitable carrier medium. Atangible carrier medium may comprise a storage medium such as a floppydisk, a CD-ROM, a hard disk drive, a magnetic tape device or a solidstate memory device and the like. A transient carrier medium may includea signal such as an electrical signal, an electronic signal, an opticalsignal, an acoustic signal, a magnetic signal or an electromagneticsignal, e.g. a microwave or RF signal.

BRIEF DESCRIPTION OF THE DRAWINGS

Embodiments of the invention will now be described, by way of exampleonly, and with reference to the following drawings in which:

FIG. 1A is a diagram schematically representing a plenoptic camera;

FIG. 1B represents a multi-array camera;

FIG. 2A is a functional diagram of a light-field camera according to anembodiment of the invention;

FIG. 2B is a functional diagram of a light-field data formator andlight-field data processor according to an embodiment of the invention;

FIG. 3 is an example of a 2D light-field image formed on a photosensorarray;

FIG. 4 represents a volume occupied by a set of rays of light in anobject space of an optical system of a camera or optical acquisitionsystem;

FIG. 5 represents a hyperboloid of one sheet;

FIGS. 6A and 6B graphically illustrate the use of reference planes forparameterisation of light-field data in accordance with one or moreembodiments of the invention;

FIG. 7 schematically illustrates representation of light-field rays withrespect to reference planes in accordance with embodiments of theinvention;

FIG. 8A is a flow chart illustrating steps of a method in accordancewith one or more embodiments of the invention;

FIG. 8B is a functional block diagram illustrating modules of a devicefor providing a light data format in accordance with one or moreembodiments of the invention;

FIG. 9 schematically illustrates parameters for representation oflight-field rays in accordance with embodiments of the invention;

FIG. 10 is a 2D ray diagram graphically illustrating intersection datain accordance with embodiments of the invention;

FIG. 11 graphically illustrates a digital line generated in accordancewith embodiments of the invention;

FIG. 12 graphically illustrates digitals line generated in accordancewith embodiments of the invention;

FIG. 13-13C graphically illustrate Radon transforms applied to a digitalline in accordance with embodiments of the invention; and

FIG. 14 is a 2D ray diagram graphically illustrating intersection datafor a plurality of cameras in accordance with embodiments of theinvention;

FIGS. 15A and 15B are a flow charts illustrating steps of a method inaccordance with one or more embodiments of the invention;

FIG. 16 represents the geometric shape of a Gaussian beam.

DETAILED DESCRIPTION

As will be appreciated by one skilled in the art, aspects of the presentprinciples can be embodied as a system, method or computer readablemedium. Accordingly, aspects of the present principles can take the formof an entirely hardware embodiment, an entirely software embodiment,(including firmware, resident software, micro-code, and so forth) or anembodiment combining software and hardware aspects that can allgenerally be referred to herein as a “circuit”, “module”, or “system”.Furthermore, aspects of the present principles can take the form of acomputer readable storage medium. Any combination of one or morecomputer readable storage medium(a) may be utilized.

Embodiments of the invention provide formatting of light-field data forfurther processing applications such as format conversion, refocusing,viewpoint change and 3D image generation.

FIG. 2A is a block diagram of a light-field camera device in accordancewith an embodiment of the invention. The light-field camera comprises anaperture/shutter 202, a main (objective) lens 201, a micro lens array210 and a photosensor array 220 in accordance with the light-fieldcamera of FIG. 1A. In some embodiments the light-field camera includes ashutter release that is activated to capture a light-field image of asubject or scene. It will be appreciated that the functional featuresmay also be applied to the light-field camera of FIG. 1B.

The photosensor array 220 provides light-field image data which isacquired by LF Data acquisition module 240 for generation of alight-field data format by light-field data formatting module 250 and/orfor processing by light-field data processor 255. Light-field data maybe stored, after acquisition and after processing, in memory 290 in araw data format, as sub aperture images or focal stacks, or in alight-field data format in accordance with embodiments of the invention.

In the illustrated example, the light-field data formatting module 150and the light-field data processor 255 are disposed in or integratedinto the light-field camera 200. In other embodiments of the inventionthe light-field data formatting module 250 and/or the light-field dataprocessor 255 may be provided in a separate component external to thelight-field capture camera. The separate component may be local orremote with respect to the light-field image capture device. It will beappreciated that any suitable wired or wireless protocol may be used fortransmitting light-field image data to the formatting module 250 orlight-field data processor 255; for example the light-field dataprocessor may transfer captured light-field image data and/or other datavia the Internet, a cellular data network, a WiFi network, a BlueToothcommunication protocol, and/or any other suitable means.

The light-field data formatting module 250 is configured to generatedata representative of the acquired light-field, in accordance withembodiments of the invention. The light-field data formatting module 250may be implemented in software, hardware or a combination thereof.

The light-field data processor 255 is configured to operate on rawlight-field image data received directly from the LF data acquisitionmodule 240 for example to generate focal stacks or a matrix of views inaccordance with embodiments of the invention. Output data, such as, forexample, still images, 2D video streams, and the like of the capturedscene may be generated. The light-field data processor may beimplemented in software, hardware or a combination thereof.

In at least one embodiment, the light-field camera 200 may also includea user interface 260 for enabling a user to provide user input tocontrol operation of camera 100 by controller 270. Control of the cameramay include one or more of control of optical parameters of the camerasuch as shutter speed, or in the case of an adjustable light-fieldcamera, control of the relative distance between the microlens array andthe photosensor, or the relative distance between the objective lens andthe microlens array. In some embodiments the relative distances betweenoptical elements of the light-field camera may be manually adjusted.Control of the camera may also include control of other light-field dataacquisition parameters, light-field data formatting parameters orlight-field processing parameters of the camera. The user interface 260may comprise any suitable user input device(s) such as a touchscreen,buttons, keyboard, pointing device, and/or the like. In this way, inputreceived by the user interface can be used to control and/or configurethe LF data formatting module 250 for controlling the data formatting,the LF data processor 255 for controlling the processing of the acquiredlight-field data and controller 270 for controlling the light-fieldcamera 200.

The light-field camera includes a power source 280, such as one or morereplaceable or rechargeable batteries. The light-field camera comprisesmemory 290 for storing captured light-field data and/or rendered finalimages or other data such as software for implementing methods ofembodiments of the invention. The memory can include external and/orinternal memory. In at least one embodiment, the memory can be providedat a separate device and/or location from camera 200. In one embodiment,the memory includes a removable/swappable storage device such as amemory stick.

The light-field camera may also include a display unit 265 (e.g., an LCDscreen) for viewing scenes in front of the camera prior to captureand/or for viewing previously captured and/or rendered images. Thescreen 265 may also be used to display one or more menus or otherinformation to the user. The light-field camera may further include oneor more I/O interfaces 295, such as FireWire or Universal Serial Bus(USB) interfaces, or wired or wireless communication interfaces for datacommunication via the Internet, a cellular data network, a WiFi network,a BlueTooth communication protocol, and/or any other suitable means. TheI/O interface 295 may be used for transferring data, such as light-fieldrepresentative data generated by LF data formatting module in accordancewith embodiments of the invention and light-field data such as rawlight-field data or data processed by LF data processor 255, to and fromexternal devices such as computer systems or display units, forrendering applications.

FIG. 2B is a block diagram illustrating a particular embodiment of apotential implementation of light-field data formatting module 250 andthe light-field data processor 253.

The circuit 2000 includes memory 2090, a memory controller 2045 andprocessing circuitry 2040 comprising one or more processing units(CPU(s)). The one or more processing units 2040 are configured to runvarious software programs and/or sets of instructions stored in thememory 2090 to perform various functions including light-field dataformatting and light-field data processing. Software components storedin the memory include a data formatting module (or set of instructions)2050 for generating data representative of acquired light data inaccordance with embodiments of the invention and a light-field dataprocessing module (or set of instructions) 2055 for processinglight-field data in accordance with embodiments of the invention. Othermodules may be included in the memory for applications of thelight-field camera device such as an operating system module 2051 forcontrolling general system tasks (e.g. power management, memorymanagement) and for facilitating communication between the varioushardware and software components of the device 2000, and an interfacemodule 2052 for controlling and managing communication with otherdevices via I/O interface ports.

FIG. 3 illustrates an example of a 2D image formed on the photosensorarray 104 of FIG. 1A or the photosensor array 114 of FIG. 1B. The 2Dimage, often referred to as a raw 4D light-field image, is composed ofan array of micro images MI, each micro image being produced by therespective micro lens (i,j) of the microlens array 102,112. The microimages are arranged in the array in a rectangular lattice structuredefined by axes i and j. A micro lens image may be referenced by therespective micro lens coordinates (i, j). A pixel PI of the photosensor104, 114 may be referenced by its spatial coordinates (x, y). 4Dlight-field data associated with a given pixel may be referenced as (x,y, i, j).

There are several ways of representing (or defining) a 4D light-fieldimage. For example, a 4D light-field image can be represented, by acollection of micro-lens images as previously described with referenceto FIG. 3. A 4D light-field image may also be represented, when recordedby a plenoptic camera by a set of sub-aperture images. Each sub-apertureimage of composed of pixels of the same position selected from eachmicrolens image. Furthermore, a 4D light-field image may be representedby a set of epipolar images, which is not the case of the pixel beam.

Embodiments of the invention provide a representation of light-fielddata based on the notion of pixel beam. In this way the diversity informats and light-field devices may be taken into account. Indeed, onedrawback of ray based formats, is that the parametrization planes haveto be sampled to reflect the pixel formats and sizes. Therefore, thesampling needs to be defined along other data in order to recoverphysical meaningful information.

A pixel beam 40, as shown on FIG. 4, represents a volume occupied by aset of rays of light in an object space of an optical system 41 of acamera. The set of rays of light is sensed by a pixel 42 of a sensor 43of the camera through a pupil 44 of said optical system 41 Contrary torays, pixel beams 40 may be sample at will since they convey per se the“etendue” which corresponds to the preservation of the energy acrosssections of the physical light rays.

A pupil of an optical system is defined as the image of an aperture stopas seen through said optical system, i.e. the lenses of the camera,which precedes said aperture stop. An aperture stop is an opening whichlimits the amount of light which passes through the optical system ofthe camera. For example, an adjustable diaphragm located near the frontof a camera lens is the aperture stop for the lens. The amount of lightadmitted through the diaphragm is controlled by the diameter of thediaphragm opening which may be adapted depending of the amount of lighta user of the camera wishes to admit. For example, making the aperturesmaller reduces the amount of light admitted through the diaphragm, butincreases the depth of focus. The effective size of a stop may be largeror smaller than its physical size because of the refractive action of alens. Formally, a pupil is the image of the aperture stop through theoptical system of the camera.

A pixel beam 40 is defined as a pencil of rays of light that reach agiven pixel 42 when propagating through the optical system 41 via anentrance pupil 44. As light travel on straight lines in free space, theshape of such a pixel beam 40 can be defined by two sections, one beingthe conjugate 45 of the pixel 42, and the other being the entrance pupil44. The pixel 42 is defined by its non-null surface and its sensitivitymap.

Thus, a pixel beam may be represented by an hyperboloid of one sheet 50,as shown on FIG. 5, supported by two elements: the pupil 54 and theconjugate 55 of the pixel 42 in the object space of the camera.

A hyperboloid of one sheet is a ruled surface that can support thenotion of pencil of rays of light and is compatible with the notion of“etendue” of physical light beams.

A hyperboloid of one sheet corresponds to the geometry of a Gaussianbeam. Indeed, in optics, a Gaussian beam is a beam of monochromaticelectromagnetic radiation whose transverse magnetic and electric fieldamplitude profiles are given by a Gaussian function; this also implies aGaussian intensity profile. This fundamental transverse Gaussian modedescribes an intended output of most lasers, since such a beam of lightcan be focused into the most concentrated spot.

The equations below assume a beam with a circular cross-section at allvalues of this can be seen by noting that a single transverse dimension,r, appears.

At a position z along the beam (measured from the focus), the spot sizeparameter w is given by¹

${w(z)} = {w_{0}\sqrt{1 + \left( \frac{z}{z_{R}} \right)^{2}}}$

where w₀ is the waist size.

As represented on FIG. 16, at a distance from the waist equal to thewidth w of the beam is equal to √{square root over (2)}w₀.

Although the tails of a Gaussian function never actually reach zero,for. This means that far from the waist, the beam “edge” is cone-shaped.The angle between lines along that cone (whose r=w(z)) and the centralaxis of the beam (r=0) is called the divergence of the beam.

The total angular spread of the beam far from the waist is then given byΘ=2θ. In an embodiment of the invention, a pixel beam 40, 50 is definedby four independent parameters: z_(p), θ_(x), θ_(y), α defining theposition and size of the pixel conjugate 45, 55, in front of the pupil44, 54.

A hyperboloid of one sheet representing a pixel beam may be defined bythe following equation:

$\begin{matrix}{{\frac{\left( {x - {z \cdot t_{x}}} \right)^{2}}{a^{2}} + \frac{\left( {y - {z \cdot t_{y}}} \right)^{2}}{a^{2}} - \frac{\left( {z - z_{p}} \right)^{2}}{c^{2}}} = 1} & (1)\end{matrix}$

where t_(x)=tan θx and t_(y)=tan θy.

An origin O of a coordinate system (x, y, z) in which the parameters ofthe pixel beam 40, 50 are defined corresponds to the centre of theconjugate of the pixel as shown on FIG. 4, a, b, c are homologous to thelength of semi-axes along Ox, Oy, Oz respectively, where a representsthe radius of the of waist along Ox; b represents the radius of thewaist along Oy and c defines an angular aperture of the pixel beam. Insome embodiments of the invention, a and b have identical values, inthese cases, the waist has a circular shape.

The parameters θ_(x), θ_(y), define a chief ray directions relative tothe entrance of the pupil 44 centre. They depend on the pixel 42position on the sensor 43 and on the optical elements of the opticalsystem 41. More precisely, the parameters θ_(x), θ_(y) represent shearangles defining a direction of the conjugate 45 of the pixel 42 from thecentre of the pupil 44.

The parameter z_(p) represents a distance of the waist 55 of the pixelbeam 40, 50, or the conjugate 45 of the pixel 42, along the z axis.

The parameter a represents the radius of the waist 55 of the pixel beam40, 50, and c is given by the following equation:

$\begin{matrix}{c^{2} = \frac{a^{2}z_{P}^{2}}{r^{2} - a^{2}}} & (2)\end{matrix}$

where r is the radius of the pupil 44, 54.

The computation of the values of the parameters z_(p), a and c isrealized for each pixel beam of a given camera during a calibrationphase of said camera. This calibration phase consists, for example, inrunning a program capable of modelling a propagation of rays of lightthrough the optical system of the camera. Such a program is for examplean optical design program such as Zemax, ©, ASAP © or Code V ©. Anoptical design program is used to design and analyze optical systems. Anoptical design program models the propagation of rays of light throughthe optical system; and can model the effect of optical elements such assimple lenses, aspheric lenses, gradient index lenses, mirrors, anddiffractive optical elements, etc.

Thus, a pixel beam 40, 50 may be defined by its chief ray and theparameters z_(p), a and c.

However, such a representation of a pixel beam 40, 50 takes up largeamounts of storage space since the classical file format for storingrays consists in storing a position and a direction in a 3D space.

In order to propose a file format for storing rays which needs lessstorage space, a method for parametrizing the four dimensions oflight-field radiance may be with reference to the cube illustrated inFIG. 6A. All six faces of the cube may be used to parameterize thelight-field. In order to parameterize direction, a second set of planesparallel to the cube faces, may be added. In this way the light-fieldmay be defined with respect to six pairs of planes with normals alongthe axis directions as:

{right arrow over (i)},−{right arrow over (i)},

,−

,{right arrow over (k)},−{right arrow over (k)}

FIG. 6B illustrates a light-field ray passing through two referenceplanes P1 and P2 used for parameterization positioned parallel to oneanother and located at known depths z₁ and z₂ respectively. Thelight-field ray intersects the first reference plane P₁ at depth

at intersection point (x₁, y₁) and intersects the second reference planeP₂ at depth

at intersection point (x₂, y₂). In this way the light-field ray may beidentified by four coordinates (x₁, y₁, x₂, y₂). The light-field canthus be parameterized by a pair of reference planes for parameterizationP₁, P₂ also referred herein as parametrization planes, with eachlight-field ray being represented as a point (x₁,y₁, x₂,x₂) ∈R⁴ in 4Dray space.

For example an origin of the reference co-ordinate system may be placedat the center of a plane P₁ generated by the basis vectors of thecoordinate axis system {right arrow over (l₁)}, {right arrow over (J₁)}.The {right arrow over (k)} axis is normal to the generated plane P₁ andthe second plane P₂ can be placed for the sake of simplicity at adistance

=Δ from plane P₁ along the {right arrow over (k)} axis. In order to takeinto account the six different directions of propagation the entirelight-field may be characterized by six pairs of such planes. A pair ofplanes, often referred to as a light slab characterizes the light-fieldinteracting with the sensor or sensor array of the light-field cameraalong a direction of propagation.

The position of a reference plane for parameterization can be given as:

{right arrow over (x₀)}=d{right arrow over (n)} where {right arrow over(n)} is the normal and d is an offset from the origin of the 3Dcoordinate system along the direction of the normal.

A Cartesian equation of a reference plane for parameterization can begiven as:

{right arrow over (n)}({right arrow over (x)}−{right arrow over (x)}₀)=0

If a light-field ray has a known position:

-   -   {right arrow over (x_(l))}(x_(i), y_(i), z_(i)) and a normalised        propagation vector:    -   {right arrow over (u)}(u₁, u₂, u₃) the general parametric        equation of a ray in 3D may be given as:

{right arrow over (x)}=t{right arrow over (u)}+{right arrow over (x_(l))}

The co-ordinates of the intersection {right arrow over (x1)} between thelight-field ray and a reference plane are given as:

$\begin{matrix}{\overset{\rightarrow}{x_{1}} = {\overset{\rightarrow}{x_{i}} + {\overset{\rightarrow}{u}\; \frac{\overset{\rightarrow}{n}\left( {\overset{\rightarrow}{x_{0}} - \overset{\rightarrow}{x_{i}}} \right)}{\overset{\rightarrow}{u}\overset{\rightarrow}{n}}}}} & (A)\end{matrix}$

There is no intersection between the light-field rays and the referenceparameterization if the following condition is not satisfied:

({right arrow over (x ₁)}−{right arrow over (x ₀)}){right arrow over(u)}>0

Due to the perpendicularity with one of the axes of the system of thepair of reference planes used to parameterize the light-field, one ofthe components of the ray intersection is always constant for eachplane. Hence if there is an intersection of a light-field ray {rightarrow over (x1)} with the first reference plane, and the intersection{right arrow over (x2)} of the said light-field with the secondreference plane, four coordinates vary and equation A can be used tocalculate the four parameters of a light-field ray. These fourparameters can be used to build up a 4D ray diagram of the light-field.

Assuming parameterization of the light-field with reference to twoparameterization reference planes, data representing the light-field maybe obtained as follows. If a reference system is set as pictured in FIG.7 a first parametrization plane P1 is perpendicular to z axis at z=z1, asecond parametrization plane P2 is arranged perpendicular to the z axisat z=z2 and a ray whose light-field parameters are L(x1; y1; x2; y2) areto be rendered at a location z=z3 where a photosensor array of alight-field camera is positioned. From equation (A):

$\overset{\rightarrow}{x_{3}} = {\overset{\rightarrow}{x_{2}} + {\overset{\rightarrow}{u}\; \frac{\overset{\rightarrow}{n}\left( {{z_{3}\overset{\rightarrow}{n}} - \overset{\rightarrow}{x_{2}}} \right)}{\overset{\rightarrow}{u}n}}}$$\overset{\rightarrow}{x_{3}} = {\overset{\rightarrow}{x_{1}} + {\overset{\rightarrow}{u}\; \frac{\overset{\rightarrow}{n}\left( {{z_{3}\overset{\rightarrow}{n}} - \overset{\rightarrow}{x_{1}}} \right)}{\overset{\rightarrow}{u}\overset{\rightarrow}{n}}}}$with$\overset{\rightarrow}{u} = {\frac{\overset{\rightarrow}{x_{2}} - \overset{\rightarrow}{x_{1}}}{{\overset{\rightarrow}{x_{2}} - \overset{\rightarrow}{x_{1}}}} = \left( {u_{x},u_{y},u_{z}} \right)}$$\overset{\rightarrow}{n}\left( {0,0,1} \right)$

Developing the Above Expression Gives:

$x_{3} = {x_{2} + {\frac{u_{x}}{u_{z}}\left( {z_{3} - z_{2}} \right)}}$$y_{3} = {y_{2} + {\frac{u_{y}}{u_{z}}\left( {z_{3} - z_{2}} \right)}}$z₃ = z₃$x_{3} = {x_{1} + {\frac{u_{x}}{u_{z}}\left( {z_{3} - z_{1}} \right)}}$$y_{3} = {y_{1} + {\frac{u_{y}}{u_{z}}\left( {z_{3} - z_{1}} \right)}}$z₃ = z₃

Both sets of equation should deliver the same point {right arrow over(x3)} as the rendered light-field ray at the new location. By replacingu_(x); u_(y); u_(z) with their corresponding expression as functions of{right arrow over (x1)} and {right arrow over (x2)}, if the second setof equation from the previous block is used and x3 and y3 are addedtogether:

${x_{1} + {\frac{z_{3} - z_{1}}{z_{2} - z_{1}}\left( {x_{2} - x_{1}} \right)} + y_{1} + {\frac{z_{3} - z_{1}}{z_{2} - z_{1}}\left( {y_{2} - y_{1}} \right)}} = {x_{3} + y_{3}}$

Leading to the Expression:

(z ₂ −z ₂)(x ₁ −y ₁)+(z ₃ −z ₁)(x ₂ +y ₂)=(z ₂ −z ₁)(x ₃ +y ₃)

Co-ordinates with a subscript ₃ relate to a known point (x₃, y₃,

) where the light-field is rendered. All depth co-ordinates z_(i) areknown. The parameterisation planes are in the direction of propagationor rendering. The light-field data parameters L are (x₁, y₁, x₂, y₂)

The light-field rays that form an image at point (x₃, y₃, z₃) are linkedby expression (B) which defines a hyper plane in

.

This signifies that if images are to be rendered from a two-planeparametrized light-field, only the rays in the vicinity of hyperplanesneed to be rendered, there is no need to trace them. FIG. 8A is a flowchart illustrating the steps of a method for generating datarepresentative of a light-field according to one or more embodiments ofthe invention. FIG. 8B is a block diagram schematically illustrating themain modules of a system for generating data representative of alight-field according to one or more embodiments of the invention.

In a preliminary step S801 of the method parameters defining thedifferent pixel beams associated to the pixels of the sensor of thecamera are acquired either by calibrating the camera of by retrievingsuch parameters from a data file stored in a remote server or on a localstorage unit such as the memory 290 of the camera or a flash diskconnected to the camera.

Such parameters are the coordinates of the chief rays of the differentpixel beams and the parameters z_(p) and a defining the position andsize of the pixel conjugate in front of the pupil obtained for eachpixel beam during the calibration of the camera. A chief ray of a pixelbeam is a straight line passing through the centre of the waist and thecentre of the pupil supporting the pixel beam. In another preliminarystep S802 raw light-field data is acquired by a light-field camera 801.The raw light-field data may for example be in the form of micro imagesas described with reference to FIG. 3. The light-field camera may be alight-field camera device such as shown in FIG. 1A or 1B and 2A and 2B.

In step S803 the acquired light-field data is processed by ray parametermodule 802 to provide intersection data (x₁, y₁, x₂, y₂) definingintersection of captured light-field rays, which correspond to chiefrays of pixel beams 40, 50, with a pair of reference planes forparameterization P₁, P₂ at respective depths

From calibration of the camera the following parameters can bedetermined: the centre of projection (x₃, y₃,

) the orientation of the optical axis of the camera and the distance ffrom the pinhole of the camera to the plane of the photosensor. Thelight-field camera parameters are illustrated in FIG. 9. The photosensorplane is located at depth

. The pixel output of the photosensor is converted into geometricalrepresentation of light-field rays. A light-slab comprising the tworeference planes P₁ and P₂ is located at depths

and

, respectively, beyond

, at the other side of the centre of projection of the camera to thephotosensor. By applying a triangle principle to the light rays, pixelcoordinates (x_(p), y_(p),

) recording the light projected from the array of microlenses can bemapped to ray parameters i.e. reference plane intersection points (x₁,y₁, x₂, y₂) by applying the following expression:

$x_{1} = {{\frac{z_{3} - z_{1}}{z_{3} - z_{p}}x_{p}} + {\frac{z_{1} - z_{p}}{z_{3} - z_{p\;}}x_{3}}}$$y_{1} = {{\frac{z_{3} - z_{1}}{z_{3} - z_{p}}y_{p}} + {\frac{z_{1} - z_{p}}{z_{3} - z_{p}}y_{3}}}$$x_{2} = {{\frac{z_{3} - z_{2}}{z_{3} - z_{p}}x_{p}} + {\frac{z_{1} - z_{p}}{z_{3} - z_{p}}x_{3}}}$$y_{2} = {{\frac{z_{3} - z_{2}}{z_{3} - z_{p}}y_{p}} + {\frac{z_{1} - z_{p}}{z_{3} - z_{p}}y_{3}}}$

The above calculation may be extended to multiple cameras with differentpairs of triplets (x_(p), y_(p),

)(x₃, x₃,

):

In the case of a plenoptic camera, a camera model with an aperture isused and a light-field ray is described in the phase space as having anorigin (x_(p), y_(p),

) and a direction (x′₃, y′₃, 1). Its propagation unto the plane (x₃, y₃)at depth z₃ can be described as a matrix transform. The lens will act asan ABCD matrix to refract the ray and another ABCD propagation matrixwill bring the ray onto the light-slab reference planes P₁ and P₂.

From this step intersection data (x₁, y₁, x₂, y₂) geometrically definingintersection of light-field rays with reference planes P₁, P₂ isobtained.

In step S804 2D ray a diagram graphically representing the intersectiondata (x₁, y₁, x₂, y₂) is obtained by ray diagram generator module 803.

FIG. 10 is a 2D ray diagram graphically representing intersection data(x₁, x₂) of light-field rays captured by a camera at location x₃=2 anddepth

=2 with an aperture |A|<0.5. The data lines of the ray diagram used toparameterise are sampled by 256 cells providing an image of 256×256pixels.

If the ray diagram illustrated in FIG. 10 is interpreted as a matrix, itcan be seen that it is sparsely populated. If the rays were to be savedindividually in a file instead of the 4D phase space matrix, this wouldrequire saving for each ray, at least 2 bytes (int16) for each positionx_(i) or x₃ plus 3 bytes for the color, i.e. 7 bytes per ray for a 2Dslice light-field, and 11 bytes per ray for its full 4D representation.Even then, the rays would be stored randomly in the file which might beunsuitable for applications that need to manipulate the representation.The inventors of the present invention have determined how to extractonly the representative data from the ray diagram matrix and to storethe data in a file in a structured manner.

Since the light-field rays are mapped along data lines of the 2D raydiagram, it is more efficient to store parameters defining the data linerather than the line values themselves. Parameters defining the dataline such as, for example, a slope defining parameter s and an axisintercept d may be stored with the set of light-field rays belonging tothat data line.

This could require for example as little as 2 bytes for slope parameters, 2 bytes for slope parameter d and then only 3 bytes per ray,Moreover, the rays may be ordered along lines in the file. In order toset lines through matrix cells so called digital lines are generatedwhich approximate the ray lines with minimum error.

To locate the data lines and to obtain slope parameter s and interceptparameter d step S805 a Radon transform is performed by line detectionmodule 804 on the ray diagram generated in step S804.

From the obtained slope parameter s and intercept parameter d arepresentative digital line is generated by digital line generationmodule 805 in step S806. In this step digital lines are generated byapproximating an analytical line to its nearest grid point, for exampleby applying Bresenham's algorithm. Indeed Bresenham's algorithm providesa way to provide a digital line with minimal operation. Other methodsmay apply a fast discrete Radon transform calculation. An example ofBresenham application is one adapted from the following reference:hap.//www.cs.helsinki.fi/group/goa/mallinnus/lines/bresenh.html.

The digital format defines the data line by two points of a grid (0,d)and (N−1, s) d being the interception corresponding to the value of x₂when x₁=0 and s being the slope parameter corresponding to the value ofx₂ when x₁=N−1. From the digital format generated the slope a of eachindividual line may be expressed as a function of, and s, as:

$a = \frac{s - d}{N - 1}$

where:

s∈{0,1, . . . N−1} and d∈{0,1, . . . N−1}

FIG. 11 illustrates an example of a digital line generated byapplication of Bresenham's algorithm.

FIG. 12 illustrates a group of digital lines having the same slope a (ors−d) but different intercepts d, the group of data lines beingcontiguous. The group of data lines is referred to herein as a bundle oflines and corresponds to a beam resulting from the camera not beingideally pinpoint. Each line addresses different pixels. In other words,one pixel belongs only to a unique line of a bundle with the same slopebut different intercepts. The upper and lower boundaries of the axisinterceptions dare given as d_(max) and d_(min) respectively.

Ray data parameterized by a sampled pair of lines (in 2D) and belongingto one camera, belong to a family of digital lines (beam) in the phasespace used for representing the data. The header of the beam can simplycontain the slope a and the thickness of the beam defined by the upperand lower boundaries of the axis interceptions d_(max)−d_(min). The rayvalues will be stored as RGB colors along digital lines whose header canbe d and s. Void cells of the ray diagram in the sampled space do notneed to be stored. Coordinates x1; x2 of the rays can be deduced fromthe parameters d, s and from the position of the cell along the digitalline.

Parameters to be estimated from the lightfield or from camera's geometryare the slope a the lower and upper bounds of the digital lineintercepts (d_(min), d_(max)), and the digital line parameters (d_(i),s_(i)). The discrete Radon transform has already been discussed as atool to measure the support location of the light-field in the raydiagram.

FIG. 13B shows the discrete Radon transform in the digital lineparameter space (d, s) of the datalines of FIG. 13A. FIG. 13C is a zoomof the region of interest comprised in FIG. 12B. The beam of digitallines is located by the search for the maximum value parameters. Therecould be some offset between the geometrical center of symmetry of theDRT and the actual position of the maximum due to image content so thatlater on, an algorithm is used to pin-point the center of symmetryinstead of the maximum. Then, the waist of the beam transform as shownon FIG. 13C is easy to find to give the values (d_(min), d_(max)). Point(d_(min)=74, s=201) is the lower envelope of the beam of digital linesfrom FIG. 12A, and point (d_(max)=81, s=208) is the upper envelope ofthe beam of digital lines.

The equations of two orthogonal 2D sliced spaces from equation B isgiven as.

(z ₂ −z ₃)(x ₁ +y ₁)+(z ₃ −z ₁)(x ₂ +y ₂)=(z ₂ −z ₁)(x ₃ +y ₃)  (C)

If a 2D slice for x_(i) coordinates is taken, the equation of the beamof lines where ray data through an aperture of size A at (x₃, y₃, z₃)will map is given as:

$\begin{matrix}{x_{2} = {{{\frac{\left( {z_{3} - z_{2}} \right)}{\left( {z_{3} - z_{1}} \right)}x_{1}} + {\frac{\left( {z_{2} - z_{1}} \right)}{\left( {z_{3} - z_{1}} \right)}\left( {x_{3} \pm A} \right)}} = {{mx}_{1} + \left( {d_{m\; {ax}_{x}} - d_{m\; i\; n_{x}}} \right)}}} & (D)\end{matrix}$

Similarly, if a 2D slice is taken for y_(i) coordinates:

$\begin{matrix}{y_{2} = {{{\frac{\left( {z_{3} - z_{2}} \right)}{\left( {z_{3} - z_{1}} \right)}y_{1}} + {\frac{\left( {z_{2} - z_{1}} \right)}{\left( {z_{3} - z_{1}} \right)}\left( {y_{3} \pm A} \right)}} = {{my}_{1} + \left( {d_{{ma}\; x_{y}} - d_{m\; i\; n_{y}}} \right)}}} & (E)\end{matrix}$

As previously described, the values of m and d_(max) _(x) , d_(min) _(x), d_(max) _(y) , d_(min) _(y) may be evaluated in the discrete domain tolocalize the characteristics of a light-field as defined by the formatdiscussed previously, there is no need to perform a 4D discrete Radontransform. If two orthogonal 2D DRT are obtained, measurements can beperformed of the slope m of the hyper-plane and the beam width of thedigital hyper-planes where all data concentrates in the 4D ray-diagram.

This simpler procedure of location assumes a circular entrance pupil Aso that d_(max) _(x) d_(min) _(x) , d_(max) _(y) , d_(min) _(y) willencompass all hyper-planes intercepts, some values written in the formatwill contain no values.

It would be interesting to obtain a format for the 4D case which issimilar to what was proposed for the 2D case. To do so, it would beinteresting to associate the 2D lines found on the Π(x₁, x₂), plane withthe lines found on the Π(y₁, y₂) place, i.e., the lines that are theresults of the intersection of the corresponding hyper plane with thetwo orthogonal slices of Π(x₁, x₂), and Π(y₁, y₂), From expressions Dand E, it is known that the corresponding lines have the same slope m.This is the first parameter that associates each line in Π(x₁, x₂) to aline in Π(y₁, y₂), for a camera at a certain depth. If there aremultiple cameras at the same depth (i.e., the case of FIG. 13A),thereare three lines in Π(x₁, x₂), and three lines in Π(y₁, y₂), withthe same estimated slope of m. The correspondences in the line offsetsbetween the lines in these two planes are then determined. To do this,the formulation of the lines in expressions D and E are exploited. Inparticular, denoting

${k = \frac{z_{2} - z_{1}}{z_{3} - z_{1}}},$

the offsets are as follows:

$\begin{matrix}\left\{ {\begin{matrix}{{{kx}_{3} + {kA}} = d_{{ma}\; x_{x}}} \\{{{kx}_{3} - {kA}} = d_{m\; i\; n_{x}}}\end{matrix}{and}} \right. & (F) \\\left\{ \begin{matrix}{{{ky}_{3} + {kA}} = d_{{ma}\; x_{y}}} \\{{{ky}_{3} - {kA}} = d_{m\; i\; n_{y}}}\end{matrix} \right. & (G)\end{matrix}$

The sets of the equations may be solved for k, x₃ and y₃. Note that (x₃,y₃, z₃) correspond to the coordinates of the camera, or in other wordsthe voxel where the corresponding bundle of light is focused into acircle of the radius A. We have supposed that the aperture on the planepositioned at z₃ is circular, so that d_(max) _(x) −d_(min) _(x)=d_(max) _(y) −d_(min) _(y) =2 kA, and by solving the previous sets ofequations:

$\begin{matrix}{k = \frac{d_{m\; {ax}_{x}} - d_{m\; i\; n_{x}}}{2A}} & (G) \\{x_{3} = {A\; \frac{d_{m\; {ax}_{x}} + d_{m\; i\; n_{x}}}{d_{{ma}\; x_{x}} - d_{m\; i\; n_{x}}}}} & (H) \\{y_{3} = {A\; \frac{d_{{ma}\; x_{y}} + d_{m\; i\; n_{y}}}{d_{{ma}\; x_{y}} - d_{m\; i\; n_{y}}}}} & (I) \\{z_{3} = \frac{z_{2} + {\left( {k - 1} \right)z_{1}}}{k}} & (J)\end{matrix}$

The digital lines may be scanned as before on Π(x₁, x₂) using theBresenham digital lines; For each individual (x₁, x₂), value, thecorresponding (y₁, y₂) values captured in the light-field are stored. Tofind such values, expression C is exploited. All the following areeither known or estimated from expressions F and G x3; y3; z3; z1; z2

Moving on each line in Π(x₁, x₂), for each (x₁ ^(q), x₂ ^(q)), thefollowing relationship in (y₁, y₂) is obtained:

$y_{2} = {{\frac{z_{3} - z_{2}}{z_{3} - z_{1}}y_{1}} + {\frac{z_{3} - z_{2}}{z_{3} - z_{1}}x_{1}^{q}} + {\frac{z_{2} - z_{1}}{z_{3} - z_{1}}\left( {x_{3} + y_{3}} \right)} - x_{2}^{q}}$Or,

y ₂ =my ₁ +mx ₁ ^(q) +k(x ₃ +y ₃*)−x ₂ ^(q) =my ₁ +d _(off)(x ₁ ^(q) ,x₂ ^(q) ,x ₃ ,y ₃*)

For each point in Π(x₁, x₂), a collection of lines in Π(y₁, y₂) issaved. d_(off) corresponds to the offset of the lines scanned and savedfor (x₁ ^(q), x₂ ^(q)). It is noted that:

d _(off)(x ₁ ^(q) ,x ₂ ^(q))=mx ₁ ^(q) +k(x ₃ +y ₃*)−x ₂ ^(q)

With reference to FIG. 12 each square is a (x₁ ^(q), x₂ ^(q)), point,and for each one of these points, there is a set of Bresenham digitallines running out of the plane of the figure along a digital bundledefined by equation:

y ₂ =my ₁ +d _(off)(x ₁ ^(q) ,x ₂ ^(q) ,x ₃ ,y ₃*)  (K)

perpendicular to the depicted datalines, but in a 4D space.

An exemplary data format for a bundle of data lines per camera isillustrated in Table 1.

Table 1

Firstly general metadata of the 4D space is provided: includingboundaries of the 4 axes x₁, x₂,y₁, y₂ and their corresponding sampling.The number of cameras (bundles) is also provided. For each camera j thefollowing parameters are saved:

the size of the aperture: A_(j), which corresponds to the diameter ofthe pupil of a pixel beam,

the focus point of the camera: cam, focusPoint=(u₃, u₃, w₃)

lowest d intercept in (x1_(x),2)=d_(j)

steepness=m_(j)

number of digital lines in (x₁, x₂)=l_(j) ^(x)

number of digital lines in (y₁, y₂)=l_(j) ^(xy)

On each camera, for each (x^(q) ₁; x^(q) ₂), scanning is started on (y₁,y₂) with respect to expression (K) using the Bresenham digital lines,and the RGB values of each light-filed rays are saved. In particulary₃*−A to y₃*+A and the corresponding d_(off) is calculated according toexpression (K).

Since the light-field rays correspond to the chief rays of the pixelbeams, the values of the parameters z_(p), a of a given pixel beam areto be stored alongside the RGB values of the corresponding light-fieldray as shown in table 1. Since these two parameters are stored as floatnumbers, this makes the data format for a bundle of data lines percamera much bigger. Indeed, in table 1, each ray occupies 3 bytes andthe parameters z_(p), a each occupy 4 bytes. Hence, the parametersz_(p), a impact heavily on the global file size.

In order to reduce the amounts of storage space, those two parametersz_(p), a are thus encoded according to the following method executed,for example, by the light-field data formatting module 250 andrepresented on FIGS. 15A and 15B.

A float number is represented with significant digits, also calledsignificand, and a scale using an exponent, the float term comes fromthat radix or comma sign that can float in the significand.

So in order to reduce the quantity of the float numbers stored in thedata format for a bundle of data lines per camera as represented intable 1, it is proposed to encode the increments of the number inreference with a starting value. The variations of the number eitherpositive, either negative are encoded on, for example 512 levels, from−254 to +255. In other embodiments of the invention, the variations ofthe number may be encoded on 256 or 128 levels. The value of theincrements are adjusted according to the values and variations of agiven parameter.

Thus, in a step S150, a starting float is used as a reference, it is forexample a first value of the parameter

for a first pixel beam of the collection of pixel beams of the camera.

In an embodiment of the invention, during a step S151, a differencebetween a second float representing a second value of the

parameter for another pixel beam in the collection of pixel beam and thefirst value of the parameter

, is computed. The second value and the first value of the parameter

are consecutive float numbers in a data stream representing the lightfiled. This difference is stored in the table 1 instead of the secondvalue of the parameter z_(p). As the parameters defining the pixel beamsare stored in an ordered spatio-angular manner, two consecutive valuesof the same parameter do vary by very small amounts.

During a step S152, a difference between a third float representing athird value of the parameter for another pixel beam in the collection ofpixel beam and the second value of the parameter

, is computed. In an embodiment of the invention, the third value andthe second value of the parameter

are consecutive float numbers in a data stream representing the lightfiled, i.e. the different values of a same parameter are groupedtogether in the data stream such as for example RGB, RGB, . . . ,z, z, .. . ,a, a, . . . . In this embodiment of the invention, it is easier tocompact the data using methods called “deflate” an example of which isgiven by https://en.wikipedia.org/wiki/DEFLATE. This difference isstored in the table 1 instead of the third value of the parameter

.

Those steps S151, S152 are executed for the values of the parameter

representing the collection of pixel beams of the camera. The same stepsare executed of the values of the parameter a.

In order to synchronize the stream of data and ensure the encoded valuesof the different parameters representing a pixel beam are reliable, in astep S153 a fourth value of the

parameter is stored as a float number and not as a difference betweentwo consecutive values of the parameter

. The step S153 is executed for example every 100 float numbers.

In another embodiment of the invention, in a step S250, a starting floatis used as a reference, it is for example a first value of the parameterfor a first pixel beam of the collection of pixel beams of the camera.

In a step S251, a difference between a second float representing asecond value of the parameter for another pixel beam in the collectionof pixel beam and the first value of the parameter

, is computed. In an embodiment of the invention, the second value andthe first value of the parameter

are consecutive float numbers in a data stream representing the lightfiled, i.e. the different values of a same parameter are groupedtogether in the data stream such as for example RGB,RGB, . . . ,z,z, . .. ,a,a, . . . . In this embodiment of the invention, it is easier tocompact the data using methods called “deflate” an example of which isgiven by https://en.wikipedia.org/wiki/DEFLATE. This difference isstored in the table 1 instead of the second value of the parameter

.

During a step S252, a difference between a third float representing athird value of the

parameter for another pixel beam in the collection of pixel beam and thefirst value of the parameter

, is computed. This difference is stored in the table 1 instead of thethird value of the parameter

.

Those steps S251, S252 are executed for the values of the parameter

representing the collection of pixel beams of the camera. Thus, for eachvalue of the parameter

, the difference with the first value of parameter

, which is the reference value, is calculated and stored in table 1. Thesame steps are executed of the values of the parameter a.

In order to synchronize the stream of data and ensure the encoded valuesof the different parameters representing a pixel beam are reliable, in astep S253 a fourth value of the

parameter is stored as a float number and not as a difference betweentwo consecutive values of the parameter

and is considered the new reference for calculating the differences thatare to be stored in table 1 instead of the corresponding values ofparameter

. The step S253 is executed for example every 100 float numbers.

This method relies on the assertion that two successive float numbershave only a small variation; F_(t+1)=F_(t)+ε. This small difference ε isencoded on 8 bits. In other embodiments of the invention, the differencemay be encoded on 4, 12 or 16 bits. This enables to optimize the memoryused on devices and network bandwidths.

The same calculations are performed in the decoding step using thestored metadata. In particular, k is found using equation (H). Hence theformat remains compact. There is no need to store four indexes for eachray in the system and two float numbers for the parameters defining apixel beam. It is noted that the sampling of the hyper-plane above isthe sampling of the 4D ray-space and thus a single x1; y1; x2; y2location is not missed. This is only one example of a systematicscanning of the 4D ray-space for saving all data in a very compact form.Other processes may of course be applied. The parametric form seems tobe adapted to explore the hyper-plane because it permits an inter-leavedspace exploration.

In the case of multiple cameras to work on data that contains severalbundles of hyper-planes (several maxima in the Radon transform due tomultiple cameras), a more complex algorithm may be used. As apre-processing step, the parameters (in, k) are found for all the peaksin the radon transform of Π(x₁, x₂), and put in one set. The same isdone for the peaks in (y₁, y₂) and the parameters are put in anotherset. Now in each iteration of the greedy algorithm, the maximum peakintensity is found in the 2D radon transform of (x₁, x₂) and thecorresponding peak in (y₁, y₂) is found by matching the previously foundparameters (m, k). After saving the data as mentioned in the lastsection, these peaks are cleaned from the radon transforms, and the nextiteration is started, until nothing meaningful remains in thelight-field.

Although the present invention has been described hereinabove withreference to specific embodiments, the present invention is not limitedto the specific embodiments, and modifications will be apparent to askilled person in the art which lie within the scope of the presentinvention.

Many further modifications and variations will suggest themselves tothose versed in the art upon making reference to the foregoingillustrative embodiments, which are given by way of example only andwhich are not intended to limit the scope of the invention, that beingdetermined solely by the appended claims. In particular the differentfeatures from different embodiments may be interchanged, whereappropriate.

1. A computer implemented method for generating data representative of avolume, in an object space of an optical acquisition system, occupied bya set of rays of light passing through a pupil of said opticalacquisition system and a conjugate of at least one pixel of a sensor ofsaid optical acquisition system said volume occupied by said set of raysof light being called a pixel beam, the method comprising: acquiring acollection of rays of light, each rays of light of said collection beingrepresentative of a pixel beam, and at least a first parameter definingthe conjugate of the pixel; obtaining intersection data definingintersections of a ray representative of the pixel beam with a pluralityof given reference planes, said reference planes being parallel to oneanother and corresponding to different depths in the object space;obtaining ray diagram parameters defining the graphical representationof the intersection data in a 2D ray diagram, and associating said raydiagram parameters with the at least first parameter defining theconjugate of the pixel to provide data representative of said pixelbeam.
 2. The method according to claim 1 further comprising: encoding adifference between a first value and a second value of the firstparameter defining the conjugate of the pixel, said difference beingassociated with said ray diagram parameters to provide datarepresentative of said pixel beam.
 3. A method according to claim 2wherein the interception data corresponding to the ray representative ofthe pixel beam is graphically represented in the ray diagram asdatalines and the ray diagram parameters include data representative ofat least one of: the slope of a dataline; and an interception of adataline with an axis of the ray diagram.
 4. A method according to claim3 wherein the datalines are detected in the 2D ray diagram by applying aRadon transform.
 5. A method according to claim 4 wherein the graphicalrepresentation is provided as a matrix of cells to provide a digitaldataline, each digital dataline format being defined by a plurality ofcells, at least one first cell representative of the interception of theline with an axis and at least one second cell from which the slope ofthe line may be determined.
 6. A method according to claim 5 whereineach digital dataline is generated by application of Bresenham'salgorithm.
 7. A method according to claim 6 wherein the datarepresentative of the pixel beam further comprises color datarepresenting the color of the corresponding ray representative of thepixel beam.
 8. A method according to claim 7 wherein the datarepresentative of the pixel beam is provided as meta data, the header ofmeta data comprising the ray diagram parameters defining the graphicalrepresentation of the intersection data in a 2D ray diagram and the bodyof the metadata comprising data representative of color of the ray andthe parameters defining a position and a size of the conjugate of thepixel in the object space.
 9. A device for generating datarepresentative of a volume, in an object space of an optical acquisitionsystem, occupied by a set of rays of light passing through a pupil ofsaid optical acquisition system and a conjugate of at least one pixel ofa sensor of said optical acquisition system said volume occupied by saidset of rays of light being called a pixel beam, the device comprising aprocessor configured to: acquire a collection of rays of light, eachrays of light of said collection being representative of a pixel beam,and at least a first parameter defining the conjugate of the pixel;obtain intersection data defining intersections of a ray representativeof the pixel beam with a plurality of given reference planes, saidreference planes being parallel to one another and corresponding todifferent depths in the object space; obtain ray diagram parametersdefining the graphical representation of the intersection data in a 2Dray diagram, and associate said ray diagram parameters with the at leastfirst parameter defining the conjugate of the pixel to provide datarepresentative of said pixel beam.
 10. The device according to claim 9wherein the processor is further configured to: encode a differencebetween a first value and a second value of the first parameter definingthe conjugate of the pixel, said difference being associated with saidray diagram parameters to provide data representative of said pixelbeam.
 11. A light field imaging device comprising: an array of microlenses arranged in a regular lattice structure; a photosensor configuredto capture light projected on the photosensor from the array of microlenses, the photosensor comprising sets of pixels, each set of pixelsbeing optically associated with a respective micro lens of the array ofmicro lenses; and a device for providing metadata in accordance withclaim
 9. 12. A device for rendering an image from light field data usingobtained in accordance with the method of claim
 1. 13. A digital filecomprising data representative of a volume, in an object space of anoptical acquisition system, occupied by a set of rays of light passingthrough a pupil of said optical acquisition system and a conjugate of atleast one pixel of a sensor of said optical acquisition system saidvolume occupied by said set of rays of light being called a pixel beam,said data comprising: a ray diagram parameters defining the graphicalrepresentation in a 2D ray diagram of intersection data of the rayrepresentative of the pixel beam, the intersection data definingintersections of the light field ray representative of the pixel beamwith a plurality of given reference planes, said reference planes beingparallel to one another and corresponding to different depths in theobject space; color data defining colors of the light field rayrepresentative of the pixel beam, and parameters defining a position anda size of a conjugate of the pixel in the object space of the opticalacquisition system.
 14. The digital file according to claim 13 obtainedby the method comprising: acquiring a collection of rays of light, eachrays of light of said collection being representative of a pixel beam,and at least a first parameter defining the conjugate of the pixel;obtaining intersection data defining intersections of a rayrepresentative of the pixel beam with a plurality of given referenceplanes, said reference planes being parallel to one another andcorresponding to different depths in the object space; obtaining raydiagram parameters defining the graphical representation of theintersection data in a 2D ray diagram, and associating said ray diagramparameters with the at least first parameter defining the conjugate ofthe pixel to provide data representative of said pixel beam. 15.(canceled)